<template>
  <div class="dashboard-container">
    <SuperAdmin :role="currentRole" />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import SuperAdmin from './super_admin/index'

export default {
  name: 'Dashboard',
  components: { SuperAdmin },
  data() {
    return {
      currentRole: ''
    }
  },
  computed: {
    ...mapGetters([
      'roles'
    ])
  },
  created() {
    this.currentRole = this.roles[0]
  }
}
</script>
